<template>
  <div v-loading="true" style="width: 100%;height: 100%">
    <!--    <form id="content" ref="form" method="post" class="custom-form" :action="action">
      <input name="lt" type="hidden" :value="loginForm.lt">
      <input name="execution" type="hidden" :value="loginForm.execution">
      <input name="_eventId" type="hidden" :value="loginForm._eventId">
      <input name="customerCode" type="hidden" :value="loginForm.customerCode">
      <input name="accountTypeCode" type="hidden" :value="loginForm.accountTypeCode">
      <input name="username" type="hidden" :value="loginForm.username">
      <input name="password" type="hidden" :value="loginForm.password">
    </form>-->
  </div>
</template>

<script>
export default {
  name: 'DialogUtils',
  data() {
    return {
      loading: false,
      loginUrl: null,
      redirect: null,
      loginForm: {
        lt: '',
        execution: '',
        _eventId: 'submit',
        customerCode: '2_55',
        accountTypeCode: '1_01',
        username: '',
        password: ''
      },
      action: 'https://cas.cztvu.com?service=https%3A%2F%2Fportal.cztvu.com%2Fcas%3Fredirect%3D%2Fuc%2Fmobile'
    }
  },
  watch: {
    $route: {
      handler: function(route) {
        this.redirect = route.query && route.query.redirect
      },
      immediate: true
    }
  },
  created() {
    this.redirect = this.$route.query && this.$route.query.redirect
    window.open(this.redirect, '_self')
  },
  methods: {}
}
</script>

<style scoped>
</style>
